package com.juyu.miliao.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: ps
 * @Date: 2019/9/16 0016 下午 1:27
 */
@Data
public class BeanPool implements Serializable {

    private long id;

    private Long userId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private LocalDate createDate;

    private Long Beans;

    /**
     * 0:收集中 1:可领取(需代码判断) 2:已领取
     */
    private Integer state;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public BeanPool() {
    }

    public BeanPool(LocalDate createDate, Long beans, Integer state) {
        this.createDate = createDate;
        Beans = beans;
        this.state = state;
    }
}
